/**
 * 
 */

package com.tenentia.pcmps.swm.data.beans;

import java.util.Date;

import org.apache.commons.beanutils.BeanUtils;

import com.tenentia.pcmps.swm.Constants;

/**
 * 
 * @author tEnEntia, S.L.N.E.
 * 
 */
public class PDFTemplate {

	private Long internalID;

	private String name;

	private String className;

	private byte[] classData;

	private Date date;

	/**
	 * 
	 */
	public PDFTemplate() {

		super();
	}

	@Override
	public String toString() {

		try {
			return BeanUtils.describe(this).toString();
		} catch (Exception e) {
			return Constants.STRING_EMPTY;
		}
	}

	public Long getInternalID() {

		return internalID;
	}

	public String getName() {

		return name;
	}

	public String getClassName() {

		return className;
	}

	public byte[] getClassData() {

		return classData;
	}

	public Date getDate() {

		return date;
	}

	public void setInternalID(Long internalID) {

		this.internalID = internalID;
	}

	public void setName(String name) {

		this.name = name;
	}

	public void setClassName(String className) {

		this.className = className;
	}

	public void setClassData(byte[] classData) {

		this.classData = classData;
	}

	public void setDate(Date date) {

		this.date = date;
	}

}
